package com.hksj.vsm.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 视频设备
 * @author chenxingqing
 */
@Data
@ApiModel
@TableName("hk_video_device")
public class VideoDevice implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设备ID(只能由数字,字母,下划线和中划线组成)")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "图片地址")
    @TableField("photo_url")
    private String photoUrl;

    @ApiModelProperty(value = "设备名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "说明")
    @TableField("`describe`")
    private String describe;

    @ApiModelProperty(value = "状态(只读)")
    @TableField("state")
    private String state;

    @ApiModelProperty(value = "排序号")
    @TableField("sort_no")
    private Integer sortNo;

    @ApiModelProperty(value = "服务器ip")
    @TableField("server_ip")
    private String serverIp;

    @ApiModelProperty(value = "端口号")
    @TableField("server_port")
    private Integer serverPort;

    @ApiModelProperty(value = "接入用户")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "接入密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "接入通道")
    @TableField("channel")
    private String channel;

    @ApiModelProperty(value = "创建者ID(只读)")
    @TableField("creator_id")
    private String creatorId;

    @ApiModelProperty(value = "创建者名称(只读)")
    @TableField("creator_name")
    private String creatorName;

    @ApiModelProperty(value = "创建时间(只读)")
    @TableField(value = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "modify_time")
    private Date modifyTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField("modifier_id")
    private String modifierId;

    @ApiModelProperty(value = "修改人名称")
    @TableField("modifier_name")
    private String modifierName;

}
